import type { TableProps } from 'antd';
import type { BannerData } from '../../types/banner';
import { Image } from 'antd';
export const BannerColumnsList: () => Promise<TableProps<BannerData>['columns']> = async () => {
    return [
        {
            title: 'id',
            dataIndex: 'id',
            key: 'id',
            align: 'center',
        },
        {
            title: '轮播图名称',
            dataIndex: 'bannername',
            key: 'bannername',
            align: 'center',
        },
        {
            title: '图片',
            dataIndex: 'url',
            key: 'url',
            align: 'center',
            render: (url: string) => (
                <Image
                    width={80}
                    height={80}
                    src={url}
                />
            ),
        },
    ]
}